//
//  UIButton+Extend.h
//  project
//
//  Created by 姚敦鹏 on 2018/10/16.
//  Copyright © 2018年 rocHome. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIButton (Extend)

/**
 *  @brief  使用颜色设置按钮背景
 *
 *  @param backgroundColor 背景颜色
 *  @param state           按钮状态
 */
- (void)setBackgroundColor:(UIColor *)backgroundColor
                  forState:(UIControlState)state;


/**
 *  @brief  倒计时

 @param timeout 倒计时长
 @param tittle  标题
 @param waitTittle 等待标题
 */
-(void)startTime:(NSInteger )timeout
           title:(NSString *)tittle
      waitTittle:(NSString *)waitTittle;

@end
